﻿
module Octopus.RemoteHpcPS.Functions

open System
open System.IO


let getNodeState hpcServer nodeName =
  Utility.execute_remote_function_withReturn hpcServer [| "getNodeState"; nodeName |]

let setNodeOnline hpcServer nodeName =
  Utility.execute_remote_function hpcServer [| "setNodeOnline"; nodeName |]

let setNodeOffline hpcServer nodeName =
  Utility.execute_remote_function hpcServer [| "setNodeOffline"; nodeName |]

let assign_HpcNodeTemplate hpcServer nodeName templateName =
  Utility.execute_remote_function hpcServer [| "assign_HpcNodeTemplate"; nodeName; templateName |]

let import_HpcNodeXml hpcServer nodeName =
  Utility.execute_remote_function hpcServer [| "import_HpcNodeXml"; nodeName |]

let instanceHpcXmlNodeImport hpcServer hostname domain (guid:System.Guid) macAddress =
  Utility.execute_remote_function hpcServer [| "instanceHpcXmlNodeImport"; hostname; domain; guid.ToString(); macAddress |]
  

  